#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include <QMessageBox>

#include <QPixmap>
#include <QBitmap>
#include <QPainter>
#include <QMouseEvent>




QT_BEGIN_NAMESPACE
namespace Ui { class login; }
QT_END_NAMESPACE

extern QString Now_Username;//当前用户
extern QString Now_Password;//当前密码

class login : public QWidget
{
    Q_OBJECT

public:
    login(QWidget *parent = nullptr);
    ~login();



    QString getEditUserName(); //获取用户输入栏的信息
    QString getEditPassword(); //获取用户密码栏的信息
    void clearUserNameEditLine(); //清除用户输入栏的信息
    void clearPasswordEditLine();//清除用户密码栏的信息


    void paintEvent(QPaintEvent *event);//绘制不规则图案

private slots:
    void on_pushButton_signin_clicked();//登录按钮
    void on_pushButton_signup_clicked();//注册按钮
    void on_pushButton_quit_clicked();//界面退出按钮

    //实现窗口移动
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);




private:
    Ui::login *ui;
    QPoint dragPosition;
};
#endif // LOGIN_H
